package com.wangzefeng.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wangzefeng.shop.entity.SysRole;
import com.wangzefeng.shop.mapper.SysRoleMapper;
import com.wangzefeng.shop.service.SysRoleService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangzefeng
 * @since 2021-03-15
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Override
    public List<SysRole> selectRolesByUserId(Integer userId) {
        return baseMapper.selectRolesByUserId(userId);
    }

    @Override
    public List<SysRole> getRoleList(Map<String, Object> map) {
        return baseMapper.selectByMap(map);
    }
}
